package com.basics.api.response.channel;

import com.basics.post.entity.CyChannelPostFile;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class ChannelPostListData implements Serializable {

    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty(value = "帖子内容")
    private String content;

    @ApiModelProperty(value = "图片链接")
    private String imageUrls;

    @ApiModelProperty(value = "用户头像")
    private String avatar;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "分组名称")
    private String groupName;


    @ApiModelProperty(value = "图标颜色(为空则不显示)")
    private String iconColor;

    @ApiModelProperty("板块名称")
    private String topicName;

    @ApiModelProperty("话题板块ID")
    private String topicId;

    @ApiModelProperty("评论数量")
    private Integer commentNum;

    @ApiModelProperty("是否点赞")
    private Integer hasPrise;

    @ApiModelProperty("点赞数量")
    private Integer priseNum;


    @ApiModelProperty(value = "文件类型(1,图片,2视频)")
    private Integer fileType;

    @ApiModelProperty(value = "封面图片")
    private String coverImg;

    @ApiModelProperty(value = "时长(秒)")
    private Long duration;

    @ApiModelProperty("评论列表")
    private List<CommentListData> commentList;

    @ApiModelProperty("点赞用户列表")
    private List<PriseUserData> priseList;

    @ApiModelProperty("帖子附件列表")
    private List<CyChannelPostFile> fileList;

    @ApiModelProperty("是否是创建用户")
    private Boolean isCreateUser=false;

    @ApiModelProperty(value = "发布时间")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date createTime;

}
